<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title></title>
    <div>
        <h3>方法</h3>
        <p >消息推送</p>
    </div>
    <script type="text/javascript">

        // 方法
        // 扩展API加载完毕后调用onPlusReady回调函数
        document.addEventListener("plusready", onPlusReady, false);
        // 扩展API加载完毕，现在可以正常调用扩展API
        function onPlusReady() {
            plus.push.createMessage("This is a push message");
        }
    </script>
</head>
<body>

</body>
</html>